<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>图形转化(svg+canvas)</title>
    <style>
        body {
            background: #fafafa;
            margin: 0;
            padding: 0;
        }
        svg {
            stroke: none;
            fill: none;
            display: none;
            position: absolute;
        }
        canvas {
            position: absolute;
            display: block;
            margin: -100px -100px;
            top: 50%;
            left: 50%;
        }
    </style>
    <script src="../Tween.js"></script>
    <script src="../stats.min.js"></script>
</head>
<body>
    <svg id="svg" width="200" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg">
        <path id="circle-path" d="M10,100 a90,90 0 1,0 180,0 a90,90 0 1,0 -180,0"/>
        <path id="rect-path" d="M90,10 110,10 110,190 90,190 90,10" />
        <path id="triangle-path" d="M100,40 170,160 30,160 100,40" />
    </svg>
    <canvas id="c" width="200" height="200"></canvas>
<script src="./index.js"></script>
</body>
</html>